import { Button, Result } from 'antd';
import React from 'react';
import { SmileOutlined } from '@ant-design/icons';
import { closeTab } from '@@/plugin-keepalive';

const NoFoundPage: React.FC = () => {
  // @ts-ignore
  list.map((i) => i)
  return (
    <Result
      icon={<SmileOutlined />}
      status="info"
      title="404"
      subTitle="抱歉, 你好像访问了一个不存在的页面."
      extra={
        <Button
          type="primary"
          onClick={() => {
            closeTab?.(location.pathname?.toLowerCase());
          }}
        >
          关闭本页签
        </Button>
      }
    />
  );
};

export default NoFoundPage;
